import request from '@/utils/request'

// 查询奖励惩罚申请列表
export function listRewardPunish(query) {
  return request({
    url: '/hrm/rewardPunish/list',
    method: 'get',
    params: query
  })
}

// 查询奖励惩罚申请详细
export function getRewardPunish(id) {
  return request({
    url: '/hrm/rewardPunish/' + id,
    method: 'get'
  })
}

// 新增奖励惩罚申请
export function addRewardPunish(data) {
  return request({
    url: '/hrm/rewardPunish',
    method: 'post',
    data: data
  })
}

// 修改奖励惩罚申请
export function updateRewardPunish(data) {
  return request({
    url: '/hrm/rewardPunish',
    method: 'put',
    data: data
  })
}

// 删除奖励惩罚申请
export function delRewardPunish(id) {
  return request({
    url: '/hrm/rewardPunish/' + id,
    method: 'delete'
  })
}
